package com.wzj.mybatisxml;


import com.wzj.mybatisxml.entity.User;
import com.wzj.mybatisxml.mapper.UserMapper;
import com.wzj.mybatisxml.utils.JDBCUtils;

/**
 * @Author: kingsWei
 */
public class Main {


    public static void main(String[] args) {
        JDBCUtils.load("/application.properties");
        String path = "mapper/UserMapper.xml";
        UserMapper userMapper = SqlSession.getUserMapper(UserMapper.class,  path);
        User user = userMapper.queryUser("11"); //可以自定义参数111
        System.out.println(user);
    }



}
